<template>
  <div>
    <h2>新闻</h2>
    {{$route.params.id}}
  </div>
</template>
<script>
export default {
  mounted(){
    
    console.log( this.$route.params);
  }
}
</script>